<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label for="c-admin_id" class="control-label col-xs-12 col-sm-2">{:__('Admin_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-admin_id" data-rule="required" data-source="auth/admin/index" data-field="nickname" class="form-control selectpage" name="row[admin_id]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label for="c-name" class="control-label col-xs-12 col-sm-2">{:__('Name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-name" data-rule="required" class="form-control" name="row[name]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label for="c-location" class="control-label col-xs-12 col-sm-2">{:__('Location')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-location" class="form-control" name="row[location]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label for="c-state" class="control-label col-xs-12 col-sm-2">{:__('State')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <div class="radio">
            {foreach name="stateList" item="vo"}
            <label for="row[state]-{$key}"><input id="row[state]-{$key}" name="row[state]" type="radio" value="{$key}" {in name="key" value="1"}checked{/in} /> {$vo}</label> 
            {/foreach}
            </div>

        </div>
    </div>
    <div class="form-group">
        <label for="c-max_concurrency" class="control-label col-xs-12 col-sm-2">{:__('Max_concurrency')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-max_concurrency" data-rule="required" class="form-control" name="row[max_concurrency]" type="number" value="1">
        </div>
    </div>
    <div class="form-group">
        <label for="c-username" class="control-label col-xs-12 col-sm-2">{:__('Username')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-username" data-rule="required" class="form-control" name="row[username]" type="text" value="" readonly="readonly">
        </div>
    </div>
    <div class="form-group">
        <label for="c-password" class="control-label col-xs-12 col-sm-2">{:__('Password')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-password" data-rule="required" class="form-control" name="row[password]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label for="c-register" class="control-label col-xs-12 col-sm-2">{:__('Register')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select  id="c-register" data-rule="required" class="form-control selectpicker" name="row[register]">
                {foreach name="registerList" item="vo"}
                    <option value="{$key}" {in name="key" value="receive"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label for="c-register_proxy" class="control-label col-xs-12 col-sm-2">{:__('Register_proxy')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-register_proxy" class="form-control" name="row[register_proxy]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label for="c-proxy" class="control-label col-xs-12 col-sm-2">{:__('Proxy')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-proxy" class="form-control" name="row[proxy]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label for="c-domain" class="control-label col-xs-12 col-sm-2">{:__('Domain')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-domain" class="form-control" name="row[domain]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label for="c-expires" class="control-label col-xs-12 col-sm-2">{:__('Expires')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-expires" class="form-control" name="row[expires]" type="number" value="120">
        </div>
    </div>

    <div class="form-group">
        <label for="c-call_interval" class="control-label col-xs-12 col-sm-2">{:__('Call_interval')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-call_interval" data-rule="required" class="form-control" name="row[call_interval]" type="number" value="0">
        </div>
    </div>
<!--    <div class="form-group">
        <label for="c-last_call_time" class="control-label col-xs-12 col-sm-2">{:__('Last_call_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-last_call_time" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[last_call_time]" type="text" value="{:date('Y-m-d H:i:s')}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-concurrency" class="control-label col-xs-12 col-sm-2">{:__('Concurrency')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-concurrency" class="form-control" name="row[concurrency]" type="number" value="0">
        </div>
    </div>
    <div class="form-group">
        <label for="c-concurrency_calls" class="control-label col-xs-12 col-sm-2">{:__('Concurrency_calls')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-concurrency_calls" class="form-control" name="row[concurrency_calls]" type="text" value="">
        </div>
    </div>
-->
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
